package cn.tedu.csmall.sso.mapper;

import cn.tedu.csmall.commons.pojo.admin.model.Admin;
import cn.tedu.csmall.commons.pojo.admin.vo.AdminListVO;
import cn.tedu.csmall.commons.pojo.admin.vo.AdminLoginVO;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface AdminMapper {

    //新增管理员
    int insert(Admin admin);

    int countByUsername(String username);

    List<AdminListVO> list();

    //根据用户名获取用户信息
    AdminLoginVO selectUserDetail(String username);
}
